/*
 * @features: 功能
 * @description: 说明
 * @Date: 2021-10-12 23:25:31
 * @Author: judu233(769471424@qq.com)
 * @LastEditTime: 2021-10-13 09:18:48
 * @LastEditors: judu233
 */
import { _decorator, Node, find } from "cc";
import UIView from "../../../Asset/ui/UIView";
import { Config } from "../../../config/Config";

const { ccclass, property } = _decorator;

@ccclass
export default class LoginView extends UIView {

    static getPrefabUrl() {
        return "login/prefabs/LoginView"
    }

    private _login: Node = null!;

    onLoad() {
        super.onLoad();
        this._login = find("login", this.node) as Node;
        this._login.on(Node.EventType.TOUCH_END, () => {
            this.enterBundle(Config.BUNDLE_HALL);
        });
    }
}
